/ Operator

Used to perform floating point division between two numbers.


Syntax

result=expression1 / expression2

PartTypeDescription
result Number The division of expression1 and expression2.
expression1 Number Any numeric expression.
expression2 Number Any numeric expression.


Notes

Use this operator when you require division that considers the decimal portion of the expressions. You can use Operator_Divide to define the / operator for classes.


Examples

This example stores the quotient of two numbers in a variable:

Dim x as Double
x=50.56/30.34   //x is 1.6664469

See Also

\, Mod operators; Operator_Divide function.